<%-- 
    Document   : offerteEffettuate
    Created on : Jan 10, 2013, 1:47:26 PM
    Author     : berto
--%>

<%@page import="it.unitn.science.matr155863_148346_145963.bccastestore.items.Offer"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

        <%
        String title=(String)request.getAttribute("title");
        List<Offer> offers=(List<Offer>)request.getAttribute("offers");
        %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Offers </title>
    </head>
    <body>
        <h2><%=title%></h2>
        <br/>
        <%
            if(offers.isEmpty()){
                %>
                <h4>There isn't any offer</h4>
                <%
            }
            for(Offer o:offers){
                request.setAttribute("offer", o);
                %>
                <jsp:include page="./offerDetails.jsp" flush="true"/>
                <%
                }
        %>    
    
    </body>
</html>
